Skip to content

Wire artifacts fallback into DatasetRestoring test helpers#191

Merged
simone-silvestri merged 1 commit intomainfrom
ss/test-fallback-restoring
Apr 27, 2026
Merged

Wire artifacts fallback into DatasetRestoring test helpers#191
simone-silvestri merged 1 commit intomainfrom
ss/test-fallback-restoring

Conversation

@simone-silvestri
Copy link
Copy Markdown
Member

@simone-silvestri simone-silvestri commented Apr 27, 2026

More wiring of download defaults into the test suites. Follows #190 and should hopefully be the last one.

🤖 Generated with Claude Code

The shared helpers `test_ocean_metadata_utilities`, `test_dataset_restoring`
and `test_timestepping_with_dataset_restoring` constructed `DatasetRestoring`
directly, which calls `download_dataset` with no recovery path. When the
upstream source (e.g. ECCO JPL) is unreachable or credentials are absent
(as on fork PRs), every testset that uses these helpers fails before any
test logic runs.

Pre-resolve the metadata file paths and run `download_dataset(metadata)`
through `download_dataset_with_fallback`, mirroring the pattern already
used in the "Fields utilities" testsets, so missing files are pulled from
NumericalEarthArtifacts before `DatasetRestoring` is constructed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@simone-silvestri simone-silvestri merged commit 8614e32 into main Apr 27, 2026
7 checks passed
@simone-silvestri simone-silvestri deleted the ss/test-fallback-restoring branch April 27, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants